<?php
$configNames = array('mezzanine', 'rolling','picture');

$data = array();

foreach($configNames as $configName)
{

    require_once('common_template_'.$configName.'.php');

    $config = $$configName;

    $keys = array_keys($config);

    foreach($keys as $key)
    {
        $itemKey = current(array_keys($config[$key]));

        $data[$key][$itemKey] = $config[$key][$itemKey];
    }

}

return $data;
?>